<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ page session="false" %>
<html>
<head>
	<title>Home</title>
	<script type="text/javascript" src="${pageContext.request.contextPath}/resources/script/jquery.min.1.8.3.js"></script>
	<script type="text/javascript">
	function sendMessage(){
		var message = $("#message").val();
		$.ajax({
			type:"POST",
			url:"/springmvc-demo/jgroups",
			data:{message:message},
			success:function(data){
				$("#result").html(data);
			}
		});
	}
	</script>
</head>
<body>
<h1>
	Hello world!  
</h1>

<P>  The time on the server is ${serverTime}. </P>
<input type="text" id="message">
<input type="button" value="组播消息" onclick="sendMessage();">
<p id="result"></p>
</body>
</html>
